/**
 * 请求接口文件
 */
 import axios from './ajax'
 //引入url常量文件
 import { DELETE_URL, ROLE_UPDATE_URL} from '../config/url.config'

 //删除接口请求
 export function deleteApi(id){
     return axios({
        //需要一个动态路由id
         url:DELETE_URL + id,
         method:'DELETE',
        //  params:{id}
     })
 }

 //修改角色信息接口请求
 export function roleupdateApi(data){
    return axios({
        url:ROLE_UPDATE_URL,
        method:'POST',
        data
       //  params:{id}
    })
}